import Vue from 'vue'
import Router from 'vue-router'
import HomePage from "../pages/HomePage";
import MemberPage from "../pages/MemberPage";
import TaskPage from "../pages/TaskPage";
import OrderPage from "../pages/OrderPage";
import ProfilePage from "../pages/ProfilePage";
import LoginPage from "../pages/LoginPage";
import RegisterPage from "../pages/RegisterPage";
import ForgetPage from "../pages/ForgetPage";
import LevelDistributionPage from "../pages/LevelDistributionPage";
import ProfileDetailPage from "../pages/ProfileDetailPage";
import IncomePage from "../pages/IncomePage";
import CostPage from "../pages/CostPage";
import BindAccountPage from "../pages/BindAccountPage";
import HelpPage from "../pages/HelpPage";
import InvitePage from "../pages/InvitePage";
import BankPage from "../pages/BankPage";
import WithDrawPage from "../pages/WithDrawPage";
import RechargePage from "../pages/RechargePage";
import NotFoundPage from "../pages/NotFoundPage";
import LogoutPage from "../pages/LogoutPage";
import AlipayPage from "../pages/AlipayPage";
import MoreInfoPage from "../pages/MoreInfoPage";
import SaveQrcodePage from "../pages/SaveQrcodePage";
import PayWayPage from "../pages/PayWayPage";
import RemoveWatermarkPage from "../pages/RemoveWatermarkPage";
import ShopPage from "../pages/ShopPage";
import ChouPage from "../pages/ChouPage";
import PublishPage from "../pages/PublishPage";
import CreditPage from "../pages/CreditPage";
import ChouHisPage from "../pages/ChouHisPage";
import VipZoomPage from "../pages/VipZoomPage";
import DayReportPage from "../pages/DayReportPage";
import MoneyShiftPage from "../pages/MoneyShiftPage";
import RobotPage from "../pages/RobotPage";
import Robot2Page from "../pages/Robot2Page";
import RechargeByKfPage from "../pages/RechargeByKfPage";
import KfPage from "../pages/KfPage";
import PayPasswordPage from "../pages/PayPassword";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: HomePage
    },
    {
      path: '/member',
      name: 'Member',
      component: MemberPage
    },
    {
      path: '/task',
      name: 'Task',
      component: TaskPage
    },
    {
      path: '/order',
      name: 'Order',
      component: OrderPage
    },
    {
      path: '/profile',
      name: 'Profile',
      component: ProfilePage
    },
    {
      path: '/login',
      name: 'Login',
      component: LoginPage
    },
    {
      path: '/register',
      name: 'Register',
      component: RegisterPage
    },
    {
      path: '/forget',
      name: 'Forget',
      component: ForgetPage
    },
    {
      path: '/income',
      name: 'Income',
      component: IncomePage
    },
    {
      path: '/cost',
      name: 'Cost',
      component: CostPage
    },

    {
      path: '/level_distribution',
      name: 'LevelDistribution',
      component: LevelDistributionPage
    },
    {
      path: '/profile_detail',
      name: 'ProfileDetail',
      component: ProfileDetailPage
    },
    {
      path: '/bind_account',
      name: 'BindAccount',
      component: BindAccountPage
    },
    {
      path: '/help',
      name: 'Help',
      component: HelpPage
    },
    {
      path: '/invite',
      name: 'Invite',
      component: InvitePage
    },
    {
      path: '/bank',
      name: 'Bank',
      component: BankPage
    },
    {
      path: '/alipay',
      name: 'Alipay',
      component: AlipayPage
    },
    {
      path: '/more_info',
      name: 'MoreInfo',
      component: MoreInfoPage
    },
    {
      path: '/withdraw',
      name: 'Withdraw',
      component: WithDrawPage
    },
    {
      path: '/recharge',
      name: 'Recharge',
      component: RechargePage
    },
    {
      path: '/logout',
      name: 'Logout',
      component: LogoutPage
    },
    {
      path: '/save_qrcode',
      name: 'SaveQrcode',
      component: SaveQrcodePage
    },
    {
      path: '/pay_way',
      name: 'PayWay',
      component: PayWayPage
    },
    {
      path: '/remove_watermark',
      name: 'RemoveWatermark',
      component: RemoveWatermarkPage
    },
    {
      path: '/shop',
      name: 'Shop',
      component: ShopPage
    },
    {
      path: '/chou',
      name: 'Chou',
      component: ChouPage
    },
    {
      path: '/chou',
      name: 'Chou',
      component: ChouPage
    },
    {
      path: '/publish',
      name: 'Publish',
      component: PublishPage
    },
    {
      path: '/credit',
      name: 'Credit',
      component: CreditPage
    },
    {
      path: '/chou_his',
      name: 'ChouHis',
      component: ChouHisPage
    },
    {
      path: '/vip_zoom',
      name: 'VipZoom',
      component: VipZoomPage
    },
    {
      path: '/day_report',
      name: 'DayReport',
      component: DayReportPage
    },
    {
      path: '/money_shift',
      name: 'MoneyShift',
      component: MoneyShiftPage
    },
    {
      path: '/robot',
      name: 'RobotPage',
      component: RobotPage
    },
    {
      path: '/robot2',
      name: 'Robot2Page',
      component: Robot2Page
    },
    {
      path: '/recharge_by_kf',
      name: 'RechargeByKfPage',
      component: RechargeByKfPage
    },
    {
      path: '/kf',
      name: 'KfPage',
      component: KfPage
    },
    {
      path: '/paypassword',
      name: 'PayPassword',
      component: PayPasswordPage
    },
    {
      path: "/404",
      name: "notFound",
      component: NotFoundPage
    },
    {
      path: "*", // 此处需特别注意置于最底部
      redirect: "/404"
    }
  ]
})
